package com.sdlh.demo.springboot.service.impl;

import com.sdlh.demo.springboot.dao.OrderMapper;
import com.sdlh.demo.springboot.po.OrderPO;
import com.sdlh.demo.springboot.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;
import org.springframework.web.context.WebApplicationContext;

@Service
//@Scope(scopeName = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.INTERFACES)
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public OrderPO findOrder(long orderNum) {
        return orderMapper.findOrder(orderNum);
    }
}
